package com.ucar.train.dao;

import com.ucar.train.dto.CarDTO;
import com.ucar.train.dto.StoreDTO;
import com.ucar.train.vo.StoreVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StoreMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StoreDTO record);

    int insertSelective(StoreDTO record);

    /**
    * @Description 根据门店编号查到相应的门店信息
    * @author Helingang
    * @param  storeId
    * @createDate 2019/8/14
    **/
    StoreDTO selectStorebyStoreId(String storeId);

    int updateByPrimaryKeySelective(StoreDTO record);

    int updateByPrimaryKey(StoreDTO record);

    List<StoreDTO> selectAllStore();

   /**
   * @Description 根据车辆的类型和门店id进行调度
   * @author Helingang
   * @param storeId，carType
   * @createDate 2019/8/14
   **/
    List<CarDTO>selectCarByCarTypeNotInCurrentStore(@Param(value = "storeId") String storeId, @Param(value = "carType") String carType);

}